var mtOrderService = require('../services/mtOrderService');
var messageUtil = require('../common/utils/messageUtil');
exports.getmtOrderCount = function (req, res) {

    //小区大使业绩信息显示
    mtOrderService.communityAmbassadordataShowApp(req, function(err, results) {

        if (err) {
            logger.error('Exception happen when questionList...' + err.message);
            res.json(messageUtil.composeFailedMessage(req, 'Exception happen when questionList...'));
        }else {
            var data={};
            var data={
                count:results.countResult
            };
            res.json(messageUtil.composeSucceededMessage(req, null, data));
        }

    });
}